﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200077B RID: 1915
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetNpcStatusScRsp : IMessage<GetNpcStatusScRsp>, IMessage, IEquatable<GetNpcStatusScRsp>, IDeepCloneable<GetNpcStatusScRsp>, IBufferMessage
	{
		// Token: 0x1700187D RID: 6269
		// (get) Token: 0x0600561A RID: 22042 RVA: 0x000E905D File Offset: 0x000E725D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetNpcStatusScRsp> Parser
		{
			get
			{
				return GetNpcStatusScRsp._parser;
			}
		}

		// Token: 0x1700187E RID: 6270
		// (get) Token: 0x0600561B RID: 22043 RVA: 0x000E9064 File Offset: 0x000E7264
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetNpcStatusScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700187F RID: 6271
		// (get) Token: 0x0600561C RID: 22044 RVA: 0x000E9076 File Offset: 0x000E7276
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetNpcStatusScRsp.Descriptor;
			}
		}

		// Token: 0x0600561D RID: 22045 RVA: 0x000E907D File Offset: 0x000E727D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetNpcStatusScRsp()
		{
		}

		// Token: 0x0600561E RID: 22046 RVA: 0x000E9090 File Offset: 0x000E7290
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetNpcStatusScRsp(GetNpcStatusScRsp other) : this()
		{
			this.npcStatusList_ = other.npcStatusList_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600561F RID: 22047 RVA: 0x000E90C6 File Offset: 0x000E72C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetNpcStatusScRsp Clone()
		{
			return new GetNpcStatusScRsp(this);
		}

		// Token: 0x17001880 RID: 6272
		// (get) Token: 0x06005620 RID: 22048 RVA: 0x000E90CE File Offset: 0x000E72CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<NpcStatus> NpcStatusList
		{
			get
			{
				return this.npcStatusList_;
			}
		}

		// Token: 0x17001881 RID: 6273
		// (get) Token: 0x06005621 RID: 22049 RVA: 0x000E90D6 File Offset: 0x000E72D6
		// (set) Token: 0x06005622 RID: 22050 RVA: 0x000E90DE File Offset: 0x000E72DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06005623 RID: 22051 RVA: 0x000E90E7 File Offset: 0x000E72E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetNpcStatusScRsp);
		}

		// Token: 0x06005624 RID: 22052 RVA: 0x000E90F8 File Offset: 0x000E72F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetNpcStatusScRsp other)
		{
			return other != null && (other == this || (this.npcStatusList_.Equals(other.npcStatusList_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005625 RID: 22053 RVA: 0x000E9148 File Offset: 0x000E7348
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.npcStatusList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005626 RID: 22054 RVA: 0x000E9195 File Offset: 0x000E7395
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005627 RID: 22055 RVA: 0x000E919D File Offset: 0x000E739D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005628 RID: 22056 RVA: 0x000E91A8 File Offset: 0x000E73A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			this.npcStatusList_.WriteTo(ref output, GetNpcStatusScRsp._repeated_npcStatusList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005629 RID: 22057 RVA: 0x000E91F8 File Offset: 0x000E73F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.npcStatusList_.CalculateSize(GetNpcStatusScRsp._repeated_npcStatusList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600562A RID: 22058 RVA: 0x000E924C File Offset: 0x000E744C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetNpcStatusScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.npcStatusList_.Add(other.npcStatusList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600562B RID: 22059 RVA: 0x000E9299 File Offset: 0x000E7499
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600562C RID: 22060 RVA: 0x000E92A4 File Offset: 0x000E74A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 106U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.npcStatusList_.AddEntriesFrom(ref input, GetNpcStatusScRsp._repeated_npcStatusList_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040021B0 RID: 8624
		private static readonly MessageParser<GetNpcStatusScRsp> _parser = new MessageParser<GetNpcStatusScRsp>(() => new GetNpcStatusScRsp());

		// Token: 0x040021B1 RID: 8625
		private UnknownFieldSet _unknownFields;

		// Token: 0x040021B2 RID: 8626
		public const int NpcStatusListFieldNumber = 13;

		// Token: 0x040021B3 RID: 8627
		private static readonly FieldCodec<NpcStatus> _repeated_npcStatusList_codec = FieldCodec.ForMessage<NpcStatus>(106U, NpcStatus.Parser);

		// Token: 0x040021B4 RID: 8628
		private readonly RepeatedField<NpcStatus> npcStatusList_ = new RepeatedField<NpcStatus>();

		// Token: 0x040021B5 RID: 8629
		public const int RetcodeFieldNumber = 9;

		// Token: 0x040021B6 RID: 8630
		private uint retcode_;
	}
}
